<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <!--针对IE的兼容性问题-->
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!--针对响应式布局之后，针对不同的布局大小自适应-->
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>登录</title>
    <!--导入bootstrap的主样式-->
    <link rel="stylesheet" href="component/bootstrap-3.3.7-dist/css/bootstrap.min.css" type="text/css">
    <style type="text/css">
        body{
            background-image: url("images/Cirno (24).jpg");
        }

        .login_box {
            width: 80%;
            margin: 0 auto;
        }

        .avatar{
            width: 100px;
            height: 75px;
        }

        .mgr {
            margin: 50px 0;
        }
    </style>
</head>
<body>
<div class="container">
    <div class="login_box">
        <figure class="text-center mgr">
            <img src="images/Cirno%20(20).jpg" alt="默认登录头像" class="avatar img-circle">
            <h2 class="text-center">用户登录</h2>
        </figure>
        <form action="#" name="myform" method="post" class="form-horizontal">
            <div class="form-group">
                <!--            control-label，将label上下居中且左对齐并加粗-->
                <label class="col-md-offset-3 col-md-1 control-label">用户名:</label>
                <div class="col-md-4">
                    <input type="text" name="username" class="form-control" placeholder="UserName">
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-offset-3 col-md-1 control-label">密码:</label>
                <div class="col-md-4">
                    <input type="password" name="password" class="form-control" placeholder="Password">
<!--                    <span class="help-block">-->
<!--                        A block of help text that breaks onto a new line and may extend beyond one line.-->
<!--                    </span>-->
                </div>
            </div>
            <!--        若加了列宽和偏移量，则需要再包一个父元素form-group-->
            <div class="form-group">
                <div class="col-md-offset-4 col-md-4">
                    <div class="checkbox">
                        <label>
                            <input type="checkbox" name="remember">记住我
                        </label>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <div class="col-md-offset-4 col-md-4">
                    <button type="submit" class="btn btn-success">登录</button>
                    <a href="register.html" class="btn btn-danger btn-md pull-right">注册</a>
                </div>
            </div>
        </form>
    </div>

</div>
<!--导入js文件-->
<script type="text/javascript" src="component/jQuery/jquery-3.0.0.min.js"></script>
<script type="text/javascript" src="component/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
</body>
</html>